<html>
	<head>
		<title>audit.html</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<link href="../../css/general1.css" rel="stylesheet" type="text/css" />
		<link href="style/css.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../../script/hiawardbpm.js"></script>
		<script type="text/javascript" src="../../script/prototype.js"></script>
		<script type="text/javascript">
        function subForm(msg){
          var webData=buildWebData(msg);
          var xmlMsg=window.dialogArguments;
          alert(xmlMsg.getXmlDocument().xml);
          xmlMsg.setCommand(12);
          xmlMsg.setWebData(webData);
          xmlMsg.buildXML();
          var url="/vchzms-hiaward/ProcessAjaxHandler";
          alert(xmlMsg.getXmlDocument().xml);
          new Ajax.Request(url,{
          method:'post',
          postBody:xmlMsg.getXmlDocument().xml,
          contentType:'application/x-www-form-urlencoded',
          encoding:'UTF-8',
          onComplete:function(transport){
	          try{
		          if(200==transport.status){
		               alert('操作成功');
		               window.close();
		              }
		          if(400==transport.status){
		               alert('创建失败');
		              }
	          }catch(err){
	              alert('js异常');
	          }
          }
       });
         }
         function buildWebData(msg){
          var webData=new WebData();
          var needException=msg;
          var flag=document.getElementById('verifyState').checked;
		  alert(flag);
          var verifyState=(flag==true?'1':'0');
          alert(verifyState);
          var accno=document.getElementById("accno").value;
          var amount=document.getElementById("amount").value;
          var vchno=document.getElementById("vchno").value;
          var subno=document.getElementById("subno").value;
          var brbank=document.getElementById("brbank").value;
          var vsbank=document.getElementById("vsbank").value;
          var auditResults=document.getElementsByName("auditResult");
          for(var i=0;i<auditResults.length;i++){
            if(auditResults[i].checked){
             var auditResult=auditResults[i].value;
            }
          }
          alert(msg);
          if(msg=='1'){
            verifyState='0';
          }
          webData.setProperty('needException',msg);
          webData.setProperty('verifyState',verifyState);
          webData.setProperty('auditResult',auditResult);
          webData.setProperty('accno',accno);
          webData.setProperty('amount',amount);
          webData.setProperty('vchno',vchno);
          webData.setProperty('subno',subno);
          webData.setProperty('brbank',brbank);
          webData.setProperty('vsbank',vsbank);
          return webData;
         }
         function changeImg(msg){
           
		   document.getElementById("face").src=msg;
           
         }
    </script>
	</head>

	<body>
		<div id="" style="height: 20px" class="title1">
			<table>
				<tr>
				  <td>
				   <span class="selectli1" id="" style="height: 20px"  onclick="changeImg('pic/00000001.jpg')">正面图像</span>
				  </td>
				  <td>
				   <span class="selectli1" id="" style="height: 20px" onclick="changeImg('pic/00000002.jpg')">背面图像</span>
				  </td>
				</tr>
			</table>
		</div>
		<div id="" style="float: left; visibility: visible;top: 10px">
						<span id="" style="visibility: visible" ><img id="face" src="pic/00000001.jpg"></span>
		</div>
		<div id="" style="width:23%;float: right; height: 20px; top: 0px" class="title1">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<a name="tag" class="selectli1">客户信息</a>
					</td>
				</tr>
			</table>
		</div>
		<div id="" style="width:23%;float: right">
			<table cellpadding="0" cellspacing="0" class="tablist1">
				<tr>
					<td>
						公司名称
					</td>
					<td>
						北京市紫枫科技发展公司
					</td>
				</tr>
				<tr>
					<td>
						联系人
					</td>
					<td>
						韩敏
					</td>
				</tr>
				<tr>
					<td>
						联系电话
					</td>
					<td>
						12345678
					</td>
				</tr>
				<tr>
					<td>
						备注
					</td>
					<td>
						中国民生银行新核心项目
					</td>
				</tr>
			</table>
		</div>
		<div id="" style="width:23%;float: right;height: 20px; top: 5px" class="title1">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<a name="tag" class="selectli1">票据信息</a>
					</td>
				</tr>
			</table>
		</div>
		<div id="" style="width:23%;float: right">
			<table cellpadding="0" cellspacing="0" class="tablist1">
				<tr>
					<td>
						帐号
					</td>
					<td>
						<input type="text" name="accno" id="accno">
					</td>
				</tr>
				<tr>
					<td>
						凭证类型
					</td>
					<td>
						<input type="text" name="vchtype" id="vchtype">
					</td>
				</tr>
				<tr>
					<td>
						凭证日期
					</td>
					<td>
						<input type="text" name="vchdate" id="vchdate">
					</td>
				</tr>
				<tr>
					<td>
						凭证金额
					</td>
					<td>
						<input type="text" name="amount" id="amount">
					</td>
				</tr>
				<tr>
					<td>
						支付密码
					</td>
					<td>
						<input type="text" name="vchpwd" id="vchpwd">
					</td>
				</tr>
				<tr>
					<td>
						密码结果
					</td>
					<td>
						通过
					</td>
				</tr>
				<tr>
					<td>
						退票理由
					</td>
					<td>
						<select name="rtreason" id="rtreason">
							<option value="1">
								大小写不一致
							</option>
							<option value="2">
								大写正有误
							</option>
							<option value="3">
								小写无封口
							</option>
							<option value="4">
								收背不符
							</option>
							<option value="5">
								背书不连续
							</option>
							<option value="6">
								背书不全
							</option>
							<option value="7">
								票面涂改
							</option>
							<option value="8">
								票面污损
							</option>
							<option value="9">
								票面要素不全
							</option>
							<option value="10">
								远期
							</option>
						</select>
					</td>
				</tr>
			</table>
		</div>
		<div style="width:23%;float: right">
		   <table>
		       <tr>
				   <td><button>退票</button></td>
					<td><button>打印退票理由书</button></td>
			   </tr>
		   </table>
		</div>
		<script type="text/javascript">
	  var xmlMsg=window.dialogArguments;
	  var accnoTemp=xmlMsg.getWebData().getProperty('accnoTemp');
	  var amountTemp=xmlMsg.getWebData().getProperty('amountTemp');
	  var vchnoTemp=xmlMsg.getWebData().getProperty('vchnoTemp');
	  var subnoTemp=xmlMsg.getWebData().getProperty('subnoTemp');
	  var brbankTemp=xmlMsg.getWebData().getProperty('brbankTemp');
	  var vsbankTemp=xmlMsg.getWebData().getProperty('vsbankTemp');
	  document.getElementById("accno").value=accnoTemp;
	  document.getElementById("amount").value=amountTemp;
	  document.getElementById("vchno").value=vchnoTemp;
	  document.getElementById("subno").value=subnoTemp;
	  document.getElementById("brbank").value=brbankTemp;
	  document.getElementById("vsbank").value=vsbankTemp;
	</script>
	</body>

</html>
